# -*- coding: utf-8 -*-
from sqlalchemy import engine_from_config, Boolean, Column, ForeignKey, Integer, String, types
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session

session = scoped_session(sessionmaker(autocommit=False, autoflush=False))
Base = declarative_base()


class Example(Base):
    __tablename__ = 'example'
    id = Column(types.Integer(), nullable=False,unique=None,default=None, primary_key=True, autoincrement=True)
    name = Column(types.Unicode(255), nullable=True,unique=None,default='')
    notes = Column(types.Unicode(255), nullable=True,unique=None,default='')

    def __init__(self, id=None, name='', notes=''):
        self.id = id
        self.name = name
        self.notes = notes
